﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GDBLL.Engine.Charactor
{
    public class CharactorClient
    {
        private int m_privateToken;//包含id，所在dictionay的信息

        public int PrivateToken
        {
            set { this.m_privateToken = value; }
            get { return this.m_privateToken; }
        }

        private int m_datahouseid;
        /// <summary>
        /// 所在的datahouse
        /// </summary>
        public int Datahouseid
        {
            get { return m_datahouseid; }
            set { m_datahouseid = value; }
        }

        private string m_name;

        public string Name
        {
            get { return m_name; }
            set { m_name = value; }
        }
        private int[] m_data;//用数组包含角色数值信息

        public int[] Data
        {
            get { return m_data; }
            set { m_data = value; }
        }


        public CharactorClient(int privateToken, string name,int[] data,int houseid)
        {
            this.m_privateToken = privateToken;
            this.m_name = name;
            this.m_data = data;
            this.Datahouseid = houseid;
        }

        public CharactorClient(int privateToken, string name)
            : this(privateToken, name, null,0)
        { }

        public CharactorClient(int privateToken)
            : this(privateToken, "", null, 0)
        { }
    }
}
